package com.javabasestage2.Object.ObjectBase;

public class object03 {
    public static void main(String[] args) {
        //有数据空间必有地址!!
        Person1 p1 = new Person1();
        p1.age = 10;
        p1.name = "小明";
        Person1 p2 = p1; //把p1 赋给了p2 ，让p2指向p1 ！
        //地址拷贝
        System.out.println(p2.age);
    }
}
class  Person1{
    int age;
    String name;
}